package com.baike;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * @author:pjm
 */
@SpringBootApplication
@EnableSwagger2 //开启接口文档引擎
@EnableDiscoveryClient //开启eureka客户端
@EnableFeignClients //开启feign功能
@EnableCircuitBreaker //开启熔断功能
@MapperScan("com.baike.mapper")
public class TeacherServiceApp {
    public static void main(String[] args) {
        SpringApplication.run(TeacherServiceApp.class,args);
    }
}
